/**
 * Copyright (C) 2025  粤港澳大湾区（广东）国创中心
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License along
 *  with this program; if not, see <https://www.gnu.org/licenses/>.
 */
#ifndef NctiGmshInterface_H
#define NctiGmshInterface_H
#include "NctiMeshFunctionInterface.h"
#include <NctiMeshDataDef.h>
namespace NCTI
{
    class NctiMeshBody;
    class NctiGmshInterface : public NctiMeshFunctionInterface
    {
        NCTI_PLUGIN_FUNCTIONS(NctiGmshInterface)
    public:
        NctiGmshInterface();
        virtual ~NctiGmshInterface();
    public:
        void Init()override;
        void Release()override;
    public:
        NctiModelFunctionResult create_volume_mesh_from_geometry(
            NctiDisplayDocCustomContainer* i_pCustomContainer,
            NctiDisplayModelBody* i_pGModelObj,
            Ncti_Mesh_Option,
            std::vector<Ncti_Float>& pos,
            std::vector<NctiElementType>& elemType,
            std::vector<Ncti_UInteger>& elemTag,
            std::vector<Ncti_UInteger>& elemData) override;
        NctiModelFunctionResult create_surface_mesh_from_gemetry(
            NctiDisplayDocCustomContainer* i_pCustomContainer,
            NctiDisplayModelBody* i_pGModelObj,
            Ncti_Mesh_Option,
            std::vector<Ncti_Float>& pos,
            std::vector<NctiElementType>& elemType,
            std::vector<Ncti_UInteger>& elemTag,
            std::vector<Ncti_UInteger>& elemData)override;
    };
}
#endif
